import 'package:flutter/material.dart';

class RoundWidget extends StatelessWidget {
  const RoundWidget({
    super.key,
    this.radius = 8,
    this.child,
    this.color,
    this.margin,
    this.bottomRadius,
    this.elevation = 0,
  });
  final double radius;
  final double? bottomRadius;
  final Widget? child;
  final Color? color;
  final double elevation;
  final EdgeInsetsGeometry? margin;

  @override
  Widget build(BuildContext context) {
    return Card(
      margin: margin,
      elevation: elevation,
      clipBehavior: Clip.antiAlias,
      color: color ?? Colors.white,
      surfaceTintColor: color ?? Colors.white,
      shape:
          RoundedRectangleBorder(borderRadius: BorderRadius.vertical(top: Radius.circular(radius),bottom: Radius.circular(bottomRadius??radius))),
      child: child,
    );
  }
}


